package meihua.stopcarapp.presenter.contract;

import java.util.List;

import meihua.mylibrary.base.BaseModel;
import meihua.mylibrary.base.BasePresenter;
import meihua.stopcarapp.bean.SpendEntity;
import meihua.stopcarapp.ui.BaseView;
import rx.Observable;

/**
 * Name: LGZ
 * Time: 2017/5/18.
 * Dec:
 */

public class SpendContract {

    public interface Model extends BaseModel {
        //获取消费列表
        Observable<List<SpendEntity>> getSpendList(String user_id,String num);
    }

    public interface View extends BaseView {
        //返回获取的列表信息
        void returnSpendList(List<SpendEntity> spends);
    }

    public abstract static class Presenter extends BasePresenter<View, Model> {
        //发起获取列表请求
        public abstract void getSpendListRequest(String user_id, String num );
    }

}
